import http from '@/utils/request'
/* 文件上传接口封装 file.js */
const prefix = "/app/v1/oss/"

export function uploadFile(formData) {
    formData.append("dir", "client")
    let config = {
        headers: {
            'content-type': 'multipart/form-data'
        },
    }
    return http.request({
        url: prefix + "uploadFile",
        method: "post",
        data: formData,
        config: config,
    });
}

export function deleteFile(pathes) {
    return http.request({
        url: prefix + "deleteFile",
        method: "post",
        data: {pathes},
    });
}

